package org.yray.sip.handler;


import org.yray.sip.base.SipMsg;
import org.yray.sip.creator.MessageCreator;
import org.yray.sip.server.SipServerContext;
import org.yray.sip.server.SipSession;

public class NotifyHandler extends MessageHandler  {




    @Override
    public String[] handler(SipMsg sipMsg, SipServerContext ssc) {
        SipSession sipSession=new SipSession(sipMsg,ssc.getRunIp(),ssc.getRunPort(),false);
        String result= MessageCreator.getCreator(sipMsg.getMsgType()).createMsg(sipSession);
        return new String[]{result};
    }
}
